﻿@model JewererBasic.WASTE_REPORT
<h2>Waste Report Detail</h2>
<a href="/WasteReport/Index">
    <input type="button" value="BACK" />
</a>
<a href="/WasteReport/PrintExistedReport">
    <input type="button" value="Print" />
</a>
<fieldset>
    <legend>General Information</legend>
    <table class="table head">
        <tr>
            <th>Report Id 
            </th>
            <th>Date
            </th>
            <th>Total Worker
            </th>
            <th>Total Weight
            </th>
        </tr>
        <tr>
            <td>
                @Html.DisplayFor(m => m.Id)
            </td>
            <td>
                @Html.DisplayFor(m => m.DateMake)
            </td>
            <td>
                @Html.DisplayFor(m => m.Total_Staff)
            </td>
            <td>
                @Html.DisplayFor(m => m.Total_Weight)
            </td>
        </tr>
    </table>
</fieldset>
@if (Model.WASTE_REPORT_DETAIL.Count > 0)
{
    <fieldset>
        <legend>Report Details</legend>
        <table class="table head">
            <tr>
                <th>Worker Id</th>
                <th>Name</th>
                <th>Total Weight</th>
            </tr>
            @foreach (var item in Model.WASTE_REPORT_DETAIL)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.EMPLOYEE.Staff_Id)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.EMPLOYEE.Name)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Waste_Weight)
                    </td>
                </tr>
            }

        </table>
    </fieldset>
}